import http from "../http.js"
//地址列表
var addressList= function(params){
	return http.get("/api/leju/front/address/list",params)
}
//地址明细
var addressDetail = function(params){
	return http.get("/api/leju/front/address/detail",params)
}

//设为默认
var setAdress = function(params){
	return http.get("/api/leju/front/address/setOne",params)
}
//删除地址
var delAdress = function(params){
	return http.get("/api/leju/front/address/del",params)
}
//修改地址
var editAdress = function(params){
	return http.post("/api/leju/front/address/update",params)
}
//新增地址
var addAdress = function(params){
	return http.post("/api/leju/front/address/save",params)
}


export{
	addressList,
	addressDetail,
	setAdress,
	delAdress,
	editAdress,
	addAdress
}